/*
 * Copyright (C) 2008+ Spark Zheng
 *
 * src/test/test_except.c
 *
 */
#include <stdio.h>
#include "global.h"
#include "except.h"

int main(int argc, char *argv[])
{
	UNUSED_PARAM(argv);
	TRY assert(argc > 2);

	EXCEPT(assert_faild)
	    fprintf(stderr, "except, %s:%d\n", EF_FILE, EF_LINE);

#ifdef _USE_FINALLY
	FINALLY fprintf(stderr, "finally\n");
#else
	ELSE fprintf(stderr, "else except\n");
#endif

	END_TRY

	assert(argc > 2);

	return 0;
}
